package com.ztesoft.sca.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.ztesoft.sca.dao.RuleDao;
import com.ztesoft.sca.model.RuleModel;


@Component
public class RuleServiceImpl implements RuleService{
	
	@Autowired
	private RuleDao ruleDao;
	
    @Override
    public void addRuleData(List<RuleModel> list) throws Exception {
    	ruleDao.addRuleData(list);
    }
    
    @Override
    public void updateRuleData(List<RuleModel> listUpdate) throws Exception {
    	ruleDao.updateRuleData(listUpdate);
    }
    
    @Override
    public List<RuleModel> selectDataRuleList() throws Exception {
    	return ruleDao.selectDataRuleList();
    }
    
    @Override
    public List<RuleModel> selectAichatRules(long cId) throws Exception {
    	return ruleDao.selectAichatRules(cId);
    }

	@Override
	public List<RuleModel> detailRuleTask(RuleModel aiChat) throws Exception {
		return ruleDao.detailRuleTask(aiChat);
	}
}
